package com.gcit.seniorWish.web.common.persistence.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 报考学校的批次及类型关系
 * </p>
 *
 * @author gaozhichang
 * @since 2018-03-19
 */
@TableName("school_batch_relation")
public class SchoolBatchRelation extends Model<SchoolBatchRelation> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    /**
     * 志愿学校id
     */
    @TableField("school_id")
    private String schoolId;
    /**
     * 学校参与的志愿批次（关联字典表）
     */
    @TableField("senior_wish_batch_type")
    private Integer seniorWishBatchType;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public Integer getSeniorWishBatchType() {
        return seniorWishBatchType;
    }

    public void setSeniorWishBatchType(Integer seniorWishBatchType) {
        this.seniorWishBatchType = seniorWishBatchType;
    }


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SchoolBatchRelation{" +
        ", id=" + id +
        ", schoolId=" + schoolId +
        ", seniorWishBatchType=" + seniorWishBatchType +
        "}";
    }
}
